package com.xzh.wms.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xzh.wms.entity.*;
import com.xzh.wms.dao.CategoryDao;

import java.util.List;

/**
 * 商品分类;(206_category)表服务实现类
 * @author : heimi
 * @date : 2024-11-19
 */
@Service
public class CategoryService {
     
    @Autowired
    private CategoryDao categoryDao;
    
    public List<Category> select(CategoryQuery query) {
        return categoryDao.select(query);
    }
    
    public Integer insert(Category category) {
        return categoryDao.insert(category);
    }
    
    public Integer update(Category category) {
        return categoryDao.update(category);
    }
    
    public Integer delete(Integer id) {
        return categoryDao.delete(id);
    }

}